{include file="header.tpl" }
<img src='{#t_images#}navi.gif' border=0 alt="">{$nav_link}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
<table width="98%" border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td width="170" height="50%" valign="top">{include file="left.tpl"}  <!-- left start --></td>
<!-- left end -->
<td valign="top"><div align="center"></div>
{if $code eq "viewf"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr>
                <td height="113" valign="top"><form action="" method="post" ><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    
					<tr>
                      <td width="345">收藏商品名</td>
                      <td width="224">上架时间</td>
                      <td width="171" align="center"> 删 除 </td>
                    </tr>
                    {section name=key loop=$f}
                    <tr class='f_one'>
                      <td><a href="index.php?act=gd&GOODS_ID={$f[key][1]}" title="点击看此信息详细内容！" target="_blank">{$f[key][0]}</a></td>
                      <td>{$f[key][2]}</td>
                      
                      <td><div align="center">
                        <input type="checkbox" name="delf[]" value="{$f[key][1]}">
                      <br></div></td>
                    </tr>
                    {/section}
                </table>
                    <div align="center">
                      <input name="提交" type="submit" value=" 删 除 ">
                      <input name="code" type="hidden" id="code" value="delf">
                    </div>
                </form></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "req"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td class="left_head"><div align="center">发布求购信息</div></td>
                <td><div align="center"><a href="index.php?act=User&code=viewreq">管理已发布求购信息</a></div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table><br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
                      <tr class='f_one'>
                        <td width="128">求购标题</td>
                        <td width="412"><input name="re[info_title]" type="text" id="re[info_title]"></td>
                      </tr>
                      <tr class='f_one'>
                        <td><p>求购内容：</p></td>
                        <td width="412"><textarea name="re[info_content]" cols="80" rows="10" class="form" id="re[info_content]"></textarea></td>
                      </tr>
                      <tr>
                        <td><input name="submit223" type="submit" class="form" id="submit223" value="  发 布  "></td>
                        <td>
                          <input name="code" type="hidden" id="code" value="doreq"></td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "viewreq"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td align="center"><a href="index.php?act=User&code=req">发布求购信息</a></td>
                <td class="left_head" align="center">管理已发布求购信息</td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<br><table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                <tr>
                  <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                      <tr class='f_one'>
                        <td width="671">求购标题</td>
                        <td width="207">更新时间</td>
                        <td width="217">&nbsp;</td>
                      </tr>
                    {section name=key loop=$re}
                    <tr class='f_one'>
                      <td>{$re[key][0]}</td>
                      <td>{$re[key][1]}</td>
                      <td width="217" align="center"><a href="index.php?act=User&code=mdreq&RID={$re[key][2]}">修改</a> | <a href="index.php?act=User&code=up&RID={$re[key][2]}">提前</a> | <a href="index.php?act=User&code=delr&RID={$re[key][2]}" onclick="return confirmDel('是否删除求购信息?')">删除</a></td>
                    </tr>
                    {/section}
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
{elseif $code eq "mdreq"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td><div align="center"><a href="index.php?act=User&code=req">发布求购信息</a></div></td>
                <td><div align="center"><a href="index.php?act=User&code=viewreq">管理已发布求购信息</a></div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table><br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
                      <tr class='f_one'>
                        <td width="128">求购标题：</td>
                        <td width="412"><input name="re[info_title]" type="text" id="re[info_title]" value="{$re.info_title}"></td>
                      </tr>
                      <tr class='f_one'>
                        <td><p>求购内容：</p></td>
                        <td width="412"><textarea name="re[info_content]" cols="80" rows="10" class="form" id="textarea2">{$re.info_content}</textarea></td>
                      </tr>
                      <tr>
                        <td><input name="submit2232" type="submit" class="form" id="submit2232" value="  回 复  "></td>
                        <td>
                          <input name="code" type="hidden" id="code3" value="domdreq">
                          <input name="RID" type="hidden" id="RID" value="{$re.id}"></td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "clog" }<br>
&nbsp;&nbsp; 您目前的余额为：<font class=blue>{$total}</font>
<form action="" method="post" >&nbsp;&nbsp;消费明细列表：
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <tr class='head'>
                      <td width="335">消费事由</td>
                      <td width="335">消费金额</td>
                      <td width="207">消费时间</td>
                      <td width="217" align='center'>删 除</td>
                    </tr>
                    {section name=key loop=$clog}
                    <tr class='f_one'>
                      <td>{$clog[key][0]}</td>
                      <td>{$clog[key][2]}</td>
                      <td>{$clog[key][1]}</td>
                      <td width="217" align="center"><input name="delog[]" type="checkbox" id="delog[]" value="{$clog[key][3]}"></td>
                    </tr>
                    {/section}
					 <tr class='f_one'>
                      <td colspan="4" align="right">{$page}</td>
                      </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<div align="center">
  <input type="submit" name="Submit" value="删除选择">
  <input name="code" type="hidden" id="code" value="delog">
</div>
</form>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top">&nbsp;&nbsp;冲值明细表<table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <tr class='head'>
                      <td width="223">冲值说明</td>
                      <td width="228">冲值金额</td>
                      <td width="289">冲值时间</td>
                      </tr>
                    {section name=key loop=$alog}
                    <tr class='f_one'>
                      <td>{$alog[key][3]}</td>
                      <td>{$alog[key][1]}</td>
                      <td>{$alog[key][0]}</td>
                      </tr>
                    {/section}
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "04"} {literal}
<SCRIPT language=Javascript>
       <!--
          function valid()
	  {
	      var errors='';
	      sn = form1.elements['modf[seller_name]'];
	      if(!sn.value) errors ='- 你必须设置一个商家名称.\n';
		  
		  em = form1.elements['modf[seller_email_address]']; 
		  if(!em.value) errors +='- 你必须设置一个电子邮件地址.\n';
	     
	      Str = form1.elements['modf[seller_email_address]'];
	      Str = Str.value;
	      thePos = Str.indexOf('@',0) + 1
	      if (Str.indexOf('@', thePos) != -1 || Str.indexOf(';', thePos) != -1 || Str.indexOf(',', thePos) != -1 || Str.indexOf(' ', thePos) != -1 || Str.indexOf('。', thePos) != -1 || Str.indexOf('，', thePos) != -1) 
	      {
                    errors +='- 请重新输入正确的电子邮件地址.\n';
              }

	      qq = form1.elements['modf[seller_qq_number]'];
	      if(isNaN(qq.value)) errors +='QQ号必须是数字.\n';
	      tele = form1.elements['modf[seller_telephone]'];
	      if(isNaN(tele.value)) errors +='电话号码必须是数字.\n';

	      if (errors) alert('发生了如下错误:\n'+errors);
              return (errors == '');
	  }
       
       
       -->
       </script>
{/literal}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form name="form1" method="post" action="" onSubmit="return valid()">
                      <tr class='f_one'>
                        <td>商家名称</td>
                        <td><input name="modf[seller_name]" type="text" id="modf[seller_name]" class="form" value="{$mod.seller_name}">
                            <span class="red">*</span></td>
                      </tr>
                      <tr class='f_one'>
                        <td> 电子邮件</td>
                        <td><input name="modf[seller_email_address]" type="text" class="form" id="modf[seller_email_address]" value="{$mod.seller_email_address}">
                          <span class="red">*</span></td>
                      </tr>
                      <tr class='f_one'>
                        <td> QQ号码</td>
                        <td><input name="modf[seller_qq_number]" type="text" class="form" id="modf[seller_qq_number]" value="{$mod.seller_qq_number}">
                            <font color="#FF0000">建议添加</font></td>
                      </tr>
                      <tr class='f_one'>
                        <td>安全提问</td>
                        <td><select name="modf[seller_question]">
                          <option value="0">&nbsp;</option>
                          <option value="母亲的名字" {if $mod.seller_question eq "母亲的名字"}selected{/if}>母亲的名字</option>
                          <option value="爷爷的名字"  {if $mod.seller_question eq "爷爷的名字"}selected{/if}>爷爷的名字</option>
                          <option value="父亲出生的城市" {if $mod.seller_question eq "父亲出生的城市"}selected{/if}>父亲出生的城市</option>
                          <option value="您其中一位老师的名字" {if $mod.seller_question eq "您其中一位老师的名字"}selected{/if}>您其中一位老师的名字</option>
                          <option value="您个人计算机的型号" {if $mod.seller_question eq "您个人计算机的型号"}selected{/if}>您个人计算机的型号</option>
                          <option value="您最喜欢的餐馆名称" {if $mod.seller_question eq "您最喜欢的餐馆名称"}selected{/if}>您最喜欢的餐馆名称</option>
                          <option value="驾驶执照的最后四位数字" {if $mod.seller_question eq "驾驶执照的最后四位数字"}selected{/if}>驾驶执照的最后四位数字</option>
                        </select></td>
                      </tr>
                      <tr class='f_one'>
                        <td>答 案</td>
                        <td><input name="modf[seller_answer]" type="text" value="{$mod.seller_answer}" size="20"></td>
                      </tr>
                      <tr class='f_one'>
                        <td> 联系电话</td>
                        <td><input name="modf[seller_telephone]" type="text" class="form" id="modf[seller_telephone]" value="{$mod.seller_telephone}">
                            <font color="#FF0000"> 建议添加</font></td>
                      </tr>
                      <tr class='f_one'>
                        <td> 联系地址</td>
                        <td><input name="modf[seller_location]" type="text" class="form" id="modf[seller_location]" value="{$mod.seller_location}"></td>
                      </tr>
                      <tr class='f_one'>
                        <td> 身份证号</td>
                        <td><input name="modf[seller_idcard_number]" type="text" class="form" id="modf[seller_idcard_number]" value="{$mod.seller_idcard_number}"></td>
                      </tr>
                      <tr>
                        <td><input name="submit5" type="submit" id="submit7" value="  修 改  ">
                            <input name="code" type="hidden" id="code11" value="03"></td>
                        <td>&nbsp;</td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "buypic"}
<table width="98%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
  <form action="" method="post" enctype="multipart/form-data" name="form4" onSubmit="return valid();">
    <tr bgcolor="#FFFFFF" class="fontgrey">
      <td>购买图片个数</td>
      <td><input name="buy_num" type="text" id="buy_num"></td>
    </tr>
    <tr  bgcolor="#FFFFFF" class="fontgrey">
      <td width="93">
      <td width="659"><input type="submit" name="Submit2" value="  购 买 ">
          <input name="code" type="hidden" id="code" value="dobuypic">
          <input name="GOODS_ID" type="hidden" id="GOODS_ID" vlue="{$g_id}">
    </tr>
  </form>
</table>
{elseif $code eq "05"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form name="form2" method="post" action="">
                      <tr class='f_one'>
                        <td width="18%">旧密码</td>
                        <td width="82%"><input name="old_pass" type="password"  class="form" id="old_pass2">
                            <span class="red">*</span></td>
                      </tr>
                      <tr class='f_one'>
                        <td>新密码</td>
                        <td><input name="new_pass" type="password" class="form" id="new_pass2">
                            <span class="red">*</span></td>
                      </tr>
                      <tr class='f_one'>
                        <td>确认新密码</td>
                        <td><input name="new_again" type="password" class="form" id="new_again2">
                            <span class="red">*</span></td>
                      </tr>
                      <tr>
                        <td><input name="submit6" type="submit" id="submit8" value="  修 改  ">
                            <input name="code" type="hidden" id="code13" value="06"></td>
                        <td>&nbsp;</td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "buy"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
                      <tr class='f_one'>
                        <td colspan="2">您的当前等级为：<b>{$level}</b> 下次购买时间为：<b>{$end_time}</b></td>
                      </tr>
                      <tr class='f_one'>
                        <td width="128"><p>购买时间：</p></td>
                        <td width="412"><select name="period">
                          <option value="3">一个季度(3个月)</option>
                          <option value="6">半年(6个月)</option>
                          <option value="12" selected>一年(12个月)</option>
                          <option value="24">两年(24个月)</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td><input name="submit2" type="submit" class="form" id="submit2" value="  购 买  "></td>
                        <td>
                          <input name="code" type="hidden" id="code8" value="dobuy">
                          </td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "upgrade"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
                      <tr class='f_one'>
                        <td colspan="2">您的当前等级为：<b>{$level}</b> 等级失效时间为：<b>{$end_time}</b></td>
                      </tr>
                      <tr class='f_one'>
                        <td width="128"><p>您可以升级为：</p></td>
                        <td width="412"><select name=tolevel class="form">
        {html_options values=$level_id  output=$level_name}
                               </select></td>
                      </tr>
                      <tr>
                        <td><input name="submit22" type="submit" class="form" id="submit22" value="  购 买  "></td>
                        <td>
                          <input name="code" type="hidden" id="code" value="doupgrade">
                        </td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "price"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td height="51"><img src="{#t_images#}hint.gif" width="32" height="32">欢迎使用<b><A href="{$index_url}">
                  {$html_title}
                </A></b>，这里罗列了所有消费项目</td>
              </tr>
              <tr>
                <td height="113" valign="top"> <br><table width="95%" border="0" align="center">
                    <tr>
                      <td colspan="2" class="td_head"><img src="{#t_images#}sign.gif" width="16" height="18"> 等级消费</td>
                      <td colspan="2" class="td_head"><img src="{#t_images#}sign.gif" width="16" height="18"> 推广消费</td>
                      <td colspan="2" class="td_head"><img src="{#t_images#}sign.gif" width="16" height="18"> 信息消费</td>
                    </tr>
                    <tr>
                      <td width="24%" rowspan="4" valign="top">{section name=key loop=$level}<div class="tdl">{$level[key][0]}：{$level[key][1]}点/月</div>{/section}</td>
                      <td width="7%" >&nbsp;</td>
                      <td width="29%" class="tdl">首页商品推荐:
                        {$feedb.index_goods}
                        点/天 </td>
                      <td width="9%">&nbsp;</td>
                      <td width="26%" class="tdl">发布广告:
                        {$feedb.issue_adv}
点/条</td>
                      <td width="5%">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td class="tdl">首页商铺推荐:
                        {$feedb.index_shop}
                        点/天</td>
                      <td>&nbsp;</td>
                      <td class="tdl">提前广告:
                        {$feedb.up_adv}
点/条 </td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td class="tdl">二级页商铺推荐:
                        {$feedb.second_shop}
                        点/天</td>
                      <td>&nbsp;</td>
                      <td class="tdl">提前求购信息:
                        {$feedb.up_req}
                        点/条 </td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td colspan="2">&nbsp;</td>
                      <td class="tdl">购买副图位：
                        {$feedb.pic_num} 点/位</td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>                                    </td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>{/if}</td>
<!-- right end -->
</tr>

</table>
<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
</td></tr></table>
{include file="footer.tpl"}